﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XinYi.CrookedShow.DAL;
using XinYi.CrookedShowMode;

namespace XinYi.CrookedShow.BLL
{
    public class IndexService
    {
        //new业务层
        IndexRepository index = new IndexRepository();
        #region 分类信息显示
        //一级分类
        public List<Category> GetCategoryList()
        {
            return index.GetCategoryList();
        }
        //二级分类
        public List<Category> GetTwoList2()
        {
            return index.GetTwoList2();
        }
        //三级分类
        public List<Category> GetThreeList3()
        {
            return index.GetThreeList3();
        }
        #endregion

        #region 商品信息显示
        public List<ProductSpuInfo> GetProduct_SpuList()
        {
            return index.GetProduct_SpuList();
        }
        #endregion

        #region 品牌显示
        public List<Brand> GetBrandList()
        {
            return index.GetBrandList();
        }
        #endregion
    }
}
